﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta name="viewport" content="width=device-width,initial-scale=1, user-scalable=no">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>圈子社区-搜索</title>

    <link rel="shortcut icon" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/images/Group.png" type="image/x-icon">
    <!-- <link rel="stylesheet" type="text/css" href="./css/web.css">
        <link rel="stylesheet" type="text/css" href="./css/search/web.search.css"> -->
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/web.css">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/search/web.search.css?v=20180427">
</head>

<body>
    <div class="yingdi-search-page">
        <div class="navbar">
            <div class="innerbar">
                <a target="_blank" href="/" class="search-navbar-logo">
                    <i></i>
                </a>
            </div>
        </div>
        <div class="main-content">
            <div class="search-area">
                <input id="keyword_search" type="text" value="{$key}">
                <a href="{:url('home/Search/search',['key'=>$key])}"><button id="to_search" style="float:right;">搜索</button></a>
            </div>
            <div class="search-type">
                {eq name="op" value="1"}
                <a href="{:url('home/Search/search',['key'=>$key])}" data-type="article" class="active">资讯</a>
                <a href="{:url('home/Search/search',['key'=>$key,'op'=>'0'])}" data-type="user">用户</a>
                {else/}
                <a href="{:url('home/Search/search',['key'=>$key])}" data-type="article">资讯</a>
                <a href="{:url('home/Search/search',['key'=>$key,'op'=>'0'])}" data-type="user" class="active">用户</a>
                {/eq}
            </div>
            <div class="tab-page">
                <div class="search-result">
                    <div class="result-count">共有
                        {eq name="op" value="1"}
                        <span class="num">{$postCount}</span>条文章结果
                        {else/}
                        <span class="num">{$userCount}</span>条用户结果
                        {/eq}
                    </br>共有<span class="num"> {$userCount+$postCount}</span>条搜索结果</div>
                        <!--以下列表2选1-->
                        <!--搜索的是资讯列表-->
                    {eq name="op" value="1"}
                    <ul class="search-article-result">
                        {volist name="postList" id="data"} 
                        <li>
                            <a href="{:url('cms/index/detail',['id'=>$data['id']])}" target="_blank">
                                <div class="item-img">
                                        <img src="{$data.cover}" alt="{$data.title}">
                                </div>
                            </a>
                            <div class="item-right-part">
                                <a href="{:url('cms/index/detail',['id'=>$data['id']])}" target="_blank">
                                    <div class="item-title">{$data.title}</div>
                                </a>
                                <div class="foot">
                                    <span class="author">作者:{$data.author}</span>
                                    <span class="comments">评论:{评论数}</span>
                                    <span class="time">{$data.create_time}</span>
                                </div>
                            </div>
                        </li>
                       {/volist}
                    </ul>
                    {else/}
                    <!--搜索出的是用户列表-->
                    <ul class="search-user-result utility-loadingRemind">
                            {volist name="userList" id="data"}
                        <li data-id="245459" class="searchPage-item">
                            <a href="/web/personal/home?id=245459" target="_blank" class="user-head">
                                <img src="{$data.avatar}">
                            </a>
                            <div class="right-part">
                                <a href="/web/personal/home?id=245459" target="_blank" class="user-name" style="color:#3b68b8">{$data.nickname}</a>
                                <div class="badge-imgs"></div>
                                <span class="user-level">Lv25</span>
                            </div>
                        </li>
                        {/volist}
                    </ul>
                    {/eq}
                </div>
                <div class="footer">
                    <ul class="pagination-ul">
                        <li class="page_first" data-page="0">
                            <a data-realpage="0">首页</a>
                        </li>
                        <li class="page_up" data-page="0">
                            <a data-realpage="0">上一页</a>
                        </li>
                        <li class="page_data" data-page="1">
                            <a data-realpage="0" class="active">1</a>
                        </li>
                        <li class="page_data" data-page="2">
                            <a data-realpage="1">2</a>
                        </li>
                        <li class="page_data" data-page="3">
                            <a data-realpage="2">3</a>
                        </li>
                        <li class="page_data" data-page="4">
                            <a data-realpage="3">4</a>
                        </li>
                        <li class="page_data" data-page="5">
                            <a data-realpage="4">5</a>
                        </li>
                        <li class="page_down" data-page="2">
                            <a data-realpage="1">下一页</a>
                        </li>
                        <li class="page_end" data-page="194">
                            <a data-realpage="193">尾页</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id="__nightingale_view_cover" style="width: 100%; height: 100%; transition: -webkit-transform 10s ease-in-out; position: fixed !important; left: 0px !important; bottom: 0px !important; overflow: hidden !important; background: rgb(0, 0, 0) !important; pointer-events: none !important; z-index: 2147483647; opacity: 0;"></div>
</body>

</html>